﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsFormsApplication1
{
 public  class MyFile
    {
     public string FileName { get; set; }//文件名
     private string fileType;//文件类型

     public string FileType
     {
         get { return fileType; }
         set 
         {
             if (value.Length > 1)
             {
                 fileType = value.Substring(1, value.Length - 1);
             }
         }
     }
     private float fileLength;//文件大小

     public float FileLength
     {
         get { return fileLength; }
         set
         {
             fileLength = Convert.ToSingle(Math.Round( value / 1024,2).ToString());
         }
     }
     public string FilePath { get; set; }//文件路径

 
    }
}
